package test01.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class MyConfigProfile {
    @Profile("dev")
    @Bean("red")
    public String red(){
        return "dev-red";
    }
    @Profile("prod")
    @Bean("red")
    public String Pred(){
        return "prod-red";
    }
}
